package com.wbl.train.common.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 王博纶
 * @since 2024-02-11
 * @description 每日车站
 */
@Data
@Accessors(chain = true)
@TableName("daily_train_station")
@Schema(name = "DailyTrainStation 对象", description = "每日车站 实体类")
public class DailyTrainStationEntity {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "车次编号")
    private String trainCode;

    @Schema(description = "站序")
    private Integer stationIndex;

    @Schema(description = "站名")
    private String name;

    @Schema(description = "站名拼音")
    private String namePinyin;

    @Schema(description = "进站时间")
    private LocalTime inTime;

    @Schema(description = "出站时间")
    private LocalTime outTime;

    @Schema(description = "停站时长")
    private LocalTime stopTime;

    @Schema(description = "里程（公里）|从上一站到本站的距离")
    private BigDecimal km;

    @Schema(description = "新增时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;


}
